package models

type Exchange struct {
	BaseModel
	Name      string    `json:"name" binding:"required" form:"name" gorm:"column:name;unique"`
	ShortName string    `json:"short_name"  form:"short_name" gorm:"column:short_name;unique"`
	Active    bool      `json:"active" form:"active" gorm:"column:active"`
	Deleted   bool      `json:"deleted" form:"deleted" gorm:"column:deleted"`
	Accounts  []Account `json:"accounts,omitempty" form:"accounts" gorm:"foreignkey:ExchangeId;association_foreignkey:Id;omitempty"`
}
